<div>
  <el-form
    :model="ruleForm"
    :rules="rules"
    ref="ruleForm"
    label-width="100px"
    label-position="left"
    class="loginPanel"
  >
    <!-- 用户名 -->
    <el-form-item label="用户名" prop="username">
      <el-input v-model="ruleForm.username"></el-input>
    </el-form-item>
    <!-- 密码 -->
    <el-form-item label="密码" prop="password">
      <el-input v-model="ruleForm.password" type="password"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="danger" @click="submitForm">登录</el-button>
      <el-button type="primary" @click="resetForm">重置</el-button>
    </el-form-item>
  </el-form>

  <div class="mask"></div>
</div>
